export default [
  {
    path: '/',
    // component: () => import('@/layout/index.vue'),
    meta: { sort: 1, title: '后台首页', icon: 'icon-home' },
    children: [
      {
        alias: '/',
        path: '/analysis',
        meta: { title: '数据分析', icon: 'icon-data-analysis' }
        // component: () => import('@/views/index/analysis.vue')
      },
      {
        path: '/bigdata',
        meta: { title: '大屏数据可视化', icon: 'icon-histogram-' }
        // component: () => import('@/views/index/bigData.vue')
      }
    ]
  },

  {
    path: '/cate',
    // component: () => import('@/layout/index.vue'),
    meta: { sort: 2, title: '分类管理', icon: 'icon-shangpin' },
    children: [
      {
        path: '/cate',
        meta: { title: '分类列表', icon: 'icon-liebiao' }
        // component: () => import('@/views/cate/index.vue')
      },
      {
        path: '/cate/create',
        meta: { title: '分类创建', icon: 'icon-zengjia1' }
        // component: () => import('@/views/cate/create.vue')
      }
    ]
  },

  {
    path: '/store',
    // component: () => import('@/layout/index.vue'),
    meta: { sort: 3, title: '门店管理', icon: 'icon-mendianguanli' },
    children: [
      {
        path: '/store',
        meta: { title: '门店列表', icon: 'icon-liebiao' }
        // component: () => import('@/views/store/index.vue')
      },
      {
        path: '/store/create',
        meta: { title: '门店创建', icon: 'icon-zengjia1' }
        // component: () => import('@/views/store/create.vue')
      }
    ]
  },
  {
    path: '/goods',
    // component: () => import('@/layout/index.vue'),
    meta: { sort: 4, title: '门店商品', icon: 'icon-shangpin' },
    children: [
      {
        path: '/goods',
        meta: { title: '商品列表', icon: 'icon-liebiao' }
        // component: () => import('@/views/goods/index.vue')
      },
      {
        path: '/goods/create',
        meta: { title: '商品创建', icon: 'icon-zengjia1' }
        // component: () => import('@/views/goods/create.vue')
      }
    ]
  },
  {
    path: '/order',
    // component: () => import('@/layout/index.vue'),
    meta: { sort: 5, title: '订单管理', icon: 'icon-dingdandaifukuan' },
    children: [
      {
        path: '/order',
        meta: { title: '订单列表', icon: 'icon-liebiao' }
        // component: () => import('@/views/order/index.vue')
      }
      // {
      // 	path: '/order/create',
      // 	meta: { title: '订单创建', icon: 'icon-zengjia1' }
      // 	// component: () => import('@/views/order/create.vue')
      // }
    ]
  },

  {
    path: '/user',
    // component: () => import('@/layout/index.vue'),
    meta: { sort: 6, title: '用户管理', icon: 'icon-yonghuguanli' },
    children: [
      {
        path: '/user',
        meta: { title: '用户列表', icon: 'icon-liebiao' }
        // component: () => import('@/views/user/index.vue')
      },
      {
        path: '/user/create',
        meta: { title: '用户创建', icon: 'icon-zengjia1' }
        // component: () => import('@/views/user/create.vue')
      }
    ]
  },

  {
    path: '/role',
    // component: () => import('@/layout/index.vue'),
    meta: { sort: 7, title: '角色管理', icon: 'icon-jiaoseguanli' },
    children: [
      {
        path: '/role',
        meta: { title: '角色列表', icon: 'icon-liebiao' }
        // component: () => import('@/views/role/index.vue')
      },
      {
        path: '/role/create',
        meta: { title: '角色创建', icon: 'icon-zengjia1' }
        // component: () => import('@/views/role/create.vue')
      }
    ]
  },

  {
    path: '/auth',
    // component: () => import('@/layout/index.vue'),
    meta: { sort: 8, title: '权限管理', icon: 'icon-fuwuquanxianguanli' },
    children: [
      {
        path: '/auth',
        meta: { title: '权限列表', icon: 'icon-liebiao' }
        // component: () => import('@/views/auth/index.vue')
      },
      {
        path: '/auth/create',
        meta: { title: '权限创建', icon: 'icon-zengjia1' }
        // component: () => import('@/views/auth/create.vue')
      }
    ]
  }
  // ...
]
